import {createRouter, createWebHashHistory, RouteRecordRaw} from "vue-router";
const routes:RouteRecordRaw[] = [];
//枚举并加载子模块中所有的路由
const modules = import.meta.globEager("./module/*.ts");
for(const path in modules){
    routes.push(...modules[path].default);
}
const router = createRouter({
    history:createWebHashHistory(),
    routes:routes,
});

export default router;